import React from 'react'
import { connect } from 'react-redux'
function Operation(props) {
	return (
		<div>
			<div>组件1</div>
			<div>
				<input
					type="text"
					placeholder="请输入"
					onChange={(e) => props.inputChange(e.target.value)}
				/>
			</div>
		</div>
	)
}

const mapDisPatchToProps = (dispatch) => {
	return {
		inputChange: (inputValue) => {
			dispatch({ type: 'INPUT_CHANGE', inputValue })
		},
	}
}
export default connect(null, mapDisPatchToProps)(Operation)
